package d1030.r211.num16;

import java.util.Scanner;

public abstract class Shape {
    public static void main(String[] args) {
        System.out.println("请输入长和宽");
        Scanner sc=new Scanner(System.in);
        double length=sc.nextDouble();
        double width= sc.nextDouble();
        System.out.println(Square.getArea(length,width));
        System.out.println(Square.getLength(length,width));
    }

    public static double getArea(double a, double b) {
        return 0;
    }


    public static double getLength(double a, double b) {
        return 0;
    }


}
abstract class Square extends Shape{
    public static double getArea(double a, double b){
        double s=a*b;
        return s;
    }
}


abstract class Circle extends  Shape{
    public static double getLength(double a,double b){
        double s=2*(a+b);
        return s;



    }

}